<table width="90%" border='1' align="center">
	<tr>
		<td colspan="6" style="text-align:center">
			<h2>Filme</h2>
		</td>
	</tr>
	<?php if(count($this->rowSet) == 0) :?>
		<tr>
			<td colspan="6" style="text-align:center">
				<h2>Nenhum registro foi encontrado.</h2>
			</td>
		</tr>
	<?php else : ?>
		<tr>
			<td>
				Nome
			</td>
			<td>
				Data de Cadastro
			</td>
			<td>
				Valor
			</td>
			<td>
				Tipo Filme
			</td>
			<td>
				Ação
			</td>
		</tr>
		<?php foreach ($this->rowSet as $row) : ?>
			<tr>
				<td>
					<?php echo $row->st_nome; ?>
				</td>
				<td>
					<?php echo $row->dt_cadastro; ?>
				</td>
				<td>
					<?php echo $row->nr_valor; ?>
				</td>
				<td>
					<?php echo $row->id_tipo_filme; ?>
				</td>
				<td>
					<a href="filme/update/id/<?php echo $row->id_filme; ?>">Alterar</a>
					|
					<a href="filme/excluir/id/<?php echo $row->id_filme; ?>">Excluir</a>
				</td>
			</tr>
		<?php endforeach;?>
	<?php endif; ?>
</table>
<div style="text-align:center;">
	<input type="button" value="Novo" onclick="document.location='filme/create'" />
</div>
